define(function (require) {
  var ko = require("knockout");

  var DateTime = function () {
    this.currentDate = ko.observable("");
  };

  DateTime.prototype.attached = function () {
    setInterval(() => {
      this.currentDate(new Date().toLocaleString());
    }, 1000);
  };
  
  return new DateTime();
});
